import java.util.Scanner;

public class Demo {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		GameLogic g = new GameLogic();
		sc = new Scanner(System.in);
		Menu menu = new Menu();
		menu.printMenu();
		int choice = menu.getChoice();
		while (true) {
			choice = menu.getChoice();
			switch (choice) {
			case 1:
				g.play();
				//we must exit the whole program with return
				return;
			case 2:
				menu.printInstructions();
				menu.printMenu();
				break;
			case 3:
				System.out.println("Goodbye!");
				return;
			}
		}
	}

}
